﻿// ----------------------------------------------------------------------
// <summary>
//  The file contains a class that used to treat style cop settings 
// </summary>
// <copyright file="PropertyAdvertizementViewModel.cs" company="DSSoftLogic">
//     Copyright@ DSSoftLogic 2011, Non-Commercial. All rights reserved.
// </copyright>
// ----------------------------------------------------------------------
namespace Property.Silverlight.ViewModelEx
{
    using System.ComponentModel.Composition;

    /// <summary>
    /// This PropertyAdvertizementViewModel is testing the StyleCop rules and how to use them.
    /// </summary>
    [Export(typeof(IAdvertizementViewModel))]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public class PropertyAdvertizementViewModel
    {
        ////private IUnitOfWork _UnitOfWork;

        /// <summary>
        /// Initializes a new instance of the <see cref="PropertyAdvertizementViewModel"/> class.
        /// </summary>
        /// <param name="advertisementView">IAdvertisementView advertisementView</param>
        public PropertyAdvertizementViewModel()/////IAdvertisementView advertisementView)
        {
            ////this.AdvertisementView = advertisementView;
            ////this.TextAdvertisementView = "Welcome! Post your Adds here.";
            ////this.AdvertisementView.ViewModel = (IAdvertisementView)this;
        }

        /// <summary>
        /// Gets or sets TextAdvertisementView
        /// </summary>
        public string TextAdvertisementView { get; set; }

        /// <summary>
        /// Gets or sets AdvertisementView
        /// </summary>
        ////public IAdvertisementView AdvertisementView { get; set; }
    }
}
